'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _path = require('path');

var _path2 = _interopRequireDefault(_path);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var ignores = ['<rootDir>/node_modules/', '<rootDir>/build/', '<rootDir>/scripts/', '<rootDir>/api/', '<rootDir>/test/setup.js', '<rootDir>/test/polyfill.js', '<rootDir>/test/helpers/', '__mocks__'];

var jestConfig = {
  bail: true,
  testEnvironment: 'jsdom',
  // cacheDirectory: './node_modules/.cache',
  // collectCoverageFrom: ['src/**/*.js'],

  testRegex: 'test/.*\\.jsx?$',
  testPathIgnorePatterns: [].concat(ignores),

  coveragePathIgnorePatterns: [].concat(ignores, ['<rootDir>/src/shared/utils/url/']),
  coverageThreshold: {
    global: {
      branches: 90,
      functions: 90,
      lines: 90,
      statements: 90
    }
  },
  moduleFileExtensions: ['', 'json', 'js', 'jsx', 'less'],
  modulePaths: ['<rootDir>/src', '<rootDir>'],
  moduleNameMapper: {
    '^import?': _path2.default.join(__dirname, './jest.importMock.js'),
    '\\.(css|less|gif|jpg|jpeg|png)$': _path2.default.join(__dirname, './jest.styleMock.js')
  },
  setupFiles: ['<rootDir>/test/setup.js'],
  transformIgnorePatterns: ['<rootDir>/node_modules/(?!(react-aaui|tempest\\.js)/)', 'babel-runtime']
};

exports.default = jestConfig;